<!DOCTYPE html>
<html>
<head>
        <script>
        window.onload = function() {
                var links = document.getElementsByTagName("a");
                for (var i=0; i < links.length; i++) {
                        links[i].setAttribute('href','test.com');
                }
        };
        </script>
        <title>触心</title>
        <link rel="stylesheet" href="css/index.css" />
</head>
<body >
<div class="header">

        <img src="images/header.jpg" repeat-x/>
</div>
<div class="header_foot">

        <img src="images/header_foot.jpg" repeat-x/>
</div>
<div class="body">

        <img src="images/body.jpg" repeat-x/>
</div>


<div class="myself">
        <a href ="https://imooc.com">imooc</a>
        <img src="images/myself.jpg" repeat-x/>
</div>


<div class="foot_top">
        <a href ="https://gitee.com">gitee</a>
        <img src="images/foot_top.jpg" repeat-x/>
</div>

<div class="foot">

        <img src="images/foot.jpg" repeat-x/>
</div>
<a href ="https://www.baidu.com">百度</a>
<a href ="https://cnglod.cn">煤炭</a>
<a href ="https://github.com">github</a>
<a href ="https://www.json.cn/">json解析</a>
</body>
</html>
